package com.example.boot.service

import org.junit.jupiter.api.Test

class BasicTest {
    fun sum(vararg nums: Int): Int {
        return nums.sum()
    }

    fun print(vararg words: String, name: String, age: Int) {
        println(words.joinToString(","))
        println(name)
        println(age)
    }

    @Test
    fun run() {
        println(sum(1, 2, 3))
        print("abc", "def", name="kevin", age=29)

        val arr = intArrayOf(1, 2, 3)
        println(sum(*arr))
    }
}